<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnCityCoordinateInTenantAuthenticationTable extends AbstractMigration
{
    public function up()
    {
        $this->table('tenant_authentication')
            ->addColumn('city_coordinate', 'string', ['limit' => 32, 'default' => '', 'comment' => '坐标'])
            ->save();
    }

    public function down()
    {
        $this->table('tenant_authentication')
            ->removeColumn('city_coordinate')
            ->save();
    }
}
